package factory;

import color.Blue;
import color.Color;
import color.Red;
import sp.Shape;

public class ColorFactory extends AbsFactory{
    @Override
   public Shape createShape(String type){
        return null;
    }


    @Override
   public Color createColor(String type){
        Color color;
        if ("red".equalsIgnoreCase(type)) {
            color = new Red();
        }else{
            color = new Blue();
        }
        return color;
    }
}
